<!doctype html>
<?php
$openId=getCurrentUserOID();
if(empty($openId)) exit('参数错误');
$bm = new CUI数据中心(Page::b病历管理,$openId);
$c用户=new C用户($bm->vo信息中心);
//获取群id,父id
$群id=$_GET['群id'];
$父id=$_GET['父id'];
//判断用户是否是群主,或者群助手
$群信息 = $c用户->fc查找群信息($群id);
//查看群文档信息
$群文档 = $c用户->fc查找群文档信息($群id);
$群聊页面=$bm->生成有效链接('websocket_qun',$_GET['state'])."&群id=".$_GET['群id']."&父id=".$_GET['父id'];
?>
?>
<html lang="en" xmlns="http://www.w3.org/1999/html">
<head>
	<title>群文档</title>
	<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
	<link rel="stylesheet" href="../style/common.css?<?=版本?>">
	<script src="../resource/js/jquery-1.11.1.min.js"></script>
	<script src="../resource/js/jquery-form.js"></script>
	<style>
		.header .qun-tianjiaw{color:#D02D4A;position:fixed;left:80%;line-height:45px;height:40px;text-align:center;}
	</style>
</head>
<body>
	<div class="header"><a href="<?=$群聊页面?>" class="return">返回</a><span class="qun-unit"><strong>群文档</strong></span></div>
<div id="txt">
	<div class="form-list">
		<div class="word-title">Video:</div>
		<ul>
			<?php
			foreach($群文档 as $value) {
				if ($value['文件类型'] == "Video") {
?>
					<li><?=$value['名称']?></li>
					<li><video src="../<?php echo $value['文件地址']?>" width="320" height="240" controls></video></li>
			<?php
				}
			}
			?>

		</ul>
	</div>

	<div class="form-list">
		<div class="word-title">Word:</div>
		<ul>
			<?php
			foreach($群文档 as $value) {
				if ($value['文件类型'] == "Word") {
					?>
					<li><?=$value['名称']?></li>
					<li><a href="../<?php echo $value['文件地址'];?>">点击下载查看</a></li>
					<?php
				}
			}
			?>
		</ul>
	</div>
	<div class="form-list">
		<div class="word-title">PowerPoint:</div>
		<ul>
			<?php
			foreach($群文档 as $value) {
				if ($value['文件类型'] == "PowerPoint") {
					?>
					<li><?=$value['名称']?></li>
					<li><a href="../<?php echo $value['文件地址'];?>">点击下载查看</a></li>
					<?php
				}
			}
			?>
		</ul>
	</div>

	<div class="form-list">
		<div class="word-title">Picture:</div>
		<ul class="form-img">
			<?php
			foreach($群文档 as $value) {
				if ($value['文件类型'] == "Picture") {
					?>
					<li><a href="#"><img src="../<?php echo $value['文件地址']?>" alt=""></a></li>
					<?php
				}
			}
			?>
		</ul>
	</div>
</div>

	
</body>
</html>


